from string import ascii_letters, digits
from random import choice
zifuji = ascii_letters + digits
def suiji_zifu(n=8):

    result = ''
    for i in range(n):
        zifu = choice(zifuji)
        result += zifu
    return result



if __name__ == '__main__':
    s1 = suiji_zifu()
    s2 = suiji_zifu(4)
    with open('/tmp/zifu.txt','w') as fobj:
        fobj.write(s1)

    print(s2)

import shutil
shutil.copy()
shutil.copy('', '')